import {request} from "../../request";

export function getPersonInfo() {
  return request({
    url: 'login/user/getPersonInfo',
    method: 'get',
  })
}


export function postPerson(data) {
  return request({
    url: 'login/user/updatePersonInfo',
    method: 'post',
    data: data,
    headers: {
      "Content-Type":"application/json"
    },
  })
}

export function getUsers(username) {
  return request({
    url: 'login/user/getUser/' + username,
    method: 'get',
  })
}

export function getUsers1(username) {
  return request({
    url: 'login/user/getTeachers/' + username,
    method: 'get',
  })
}

